import request from '@/utils/request'

//查询所有订单信息
export function listAllOrder(query) {
  return request({
    url: '/orderList/getDetailsOrder',
    method: 'get',
    params: query
  })
}

//模糊搜索所有订单符合条件的订单
export function listLikeOrder(message) {
  return request({
    url: '/orderList/getOrderLike?message=' + message,
    method: 'get',
  })
}

//获取订单中对应的菜品信息getDishOrderById
export function listOrderById(id) {
  return request({
    url: '/orderList/getDishOrderById?id=' + id,
    method: 'get',
  })
}
